package org.linlinjava.litemall.db.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class LumiereLevelMemberExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LumiereLevelMemberExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public LumiereLevelMemberExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public LumiereLevelMemberExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public static Criteria newAndCreateCriteria() {
        LumiereLevelMemberExample example = new LumiereLevelMemberExample();
        return example.createCriteria();
    }

    public LumiereLevelMemberExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public LumiereLevelMemberExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> giftCardIdsCriteria;

        protected List<Criterion> allCriteria;

        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
            giftCardIdsCriteria = new ArrayList<Criterion>();
        }

        public List<Criterion> getGiftCardIdsCriteria() {
            return giftCardIdsCriteria;
        }

        protected void addGiftCardIdsCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            giftCardIdsCriteria.add(new Criterion(condition, value, "org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler"));
            allCriteria = null;
        }

        protected void addGiftCardIdsCriterion(String condition, Integer[] value1, Integer[] value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            giftCardIdsCriteria.add(new Criterion(condition, value1, value2, "org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler"));
            allCriteria = null;
        }

        public boolean isValid() {
            return criteria.size() > 0
                || giftCardIdsCriteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            if (allCriteria == null) {
                allCriteria = new ArrayList<Criterion>();
                allCriteria.addAll(criteria);
                allCriteria.addAll(giftCardIdsCriteria);
            }
            return allCriteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
            allCriteria = null;
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
            allCriteria = null;
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
            allCriteria = null;
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("`name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("`name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("`name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("`name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("`name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("`name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("`name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("`name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("`name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("`name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("`name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("`name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("`name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("`name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysIsNull() {
            addCriterion("expired_days is null");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysIsNotNull() {
            addCriterion("expired_days is not null");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysEqualTo(Integer value) {
            addCriterion("expired_days =", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("expired_days = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiredDaysNotEqualTo(Integer value) {
            addCriterion("expired_days <>", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("expired_days <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiredDaysGreaterThan(Integer value) {
            addCriterion("expired_days >", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("expired_days > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiredDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("expired_days >=", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("expired_days >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiredDaysLessThan(Integer value) {
            addCriterion("expired_days <", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("expired_days < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiredDaysLessThanOrEqualTo(Integer value) {
            addCriterion("expired_days <=", value, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("expired_days <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiredDaysIn(List<Integer> values) {
            addCriterion("expired_days in", values, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysNotIn(List<Integer> values) {
            addCriterion("expired_days not in", values, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysBetween(Integer value1, Integer value2) {
            addCriterion("expired_days between", value1, value2, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andExpiredDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("expired_days not between", value1, value2, "expiredDays");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyIsNull() {
            addCriterion("upgrade_money is null");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyIsNotNull() {
            addCriterion("upgrade_money is not null");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyEqualTo(BigDecimal value) {
            addCriterion("upgrade_money =", value, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_money = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyNotEqualTo(BigDecimal value) {
            addCriterion("upgrade_money <>", value, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_money <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyGreaterThan(BigDecimal value) {
            addCriterion("upgrade_money >", value, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_money > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("upgrade_money >=", value, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_money >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyLessThan(BigDecimal value) {
            addCriterion("upgrade_money <", value, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_money < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("upgrade_money <=", value, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_money <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyIn(List<BigDecimal> values) {
            addCriterion("upgrade_money in", values, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyNotIn(List<BigDecimal> values) {
            addCriterion("upgrade_money not in", values, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("upgrade_money between", value1, value2, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradeMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("upgrade_money not between", value1, value2, "upgradeMoney");
            return (Criteria) this;
        }

        public Criteria andUpgradePointIsNull() {
            addCriterion("upgrade_point is null");
            return (Criteria) this;
        }

        public Criteria andUpgradePointIsNotNull() {
            addCriterion("upgrade_point is not null");
            return (Criteria) this;
        }

        public Criteria andUpgradePointEqualTo(BigDecimal value) {
            addCriterion("upgrade_point =", value, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_point = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradePointNotEqualTo(BigDecimal value) {
            addCriterion("upgrade_point <>", value, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_point <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradePointGreaterThan(BigDecimal value) {
            addCriterion("upgrade_point >", value, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_point > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradePointGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("upgrade_point >=", value, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_point >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradePointLessThan(BigDecimal value) {
            addCriterion("upgrade_point <", value, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_point < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradePointLessThanOrEqualTo(BigDecimal value) {
            addCriterion("upgrade_point <=", value, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("upgrade_point <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpgradePointIn(List<BigDecimal> values) {
            addCriterion("upgrade_point in", values, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointNotIn(List<BigDecimal> values) {
            addCriterion("upgrade_point not in", values, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("upgrade_point between", value1, value2, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andUpgradePointNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("upgrade_point not between", value1, value2, "upgradePoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyIsNull() {
            addCriterion("save_level_money is null");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyIsNotNull() {
            addCriterion("save_level_money is not null");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyEqualTo(BigDecimal value) {
            addCriterion("save_level_money =", value, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_money = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyNotEqualTo(BigDecimal value) {
            addCriterion("save_level_money <>", value, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_money <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyGreaterThan(BigDecimal value) {
            addCriterion("save_level_money >", value, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_money > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("save_level_money >=", value, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_money >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyLessThan(BigDecimal value) {
            addCriterion("save_level_money <", value, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_money < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("save_level_money <=", value, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_money <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyIn(List<BigDecimal> values) {
            addCriterion("save_level_money in", values, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyNotIn(List<BigDecimal> values) {
            addCriterion("save_level_money not in", values, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("save_level_money between", value1, value2, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("save_level_money not between", value1, value2, "saveLevelMoney");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointIsNull() {
            addCriterion("save_level_point is null");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointIsNotNull() {
            addCriterion("save_level_point is not null");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointEqualTo(BigDecimal value) {
            addCriterion("save_level_point =", value, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_point = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointNotEqualTo(BigDecimal value) {
            addCriterion("save_level_point <>", value, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_point <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointGreaterThan(BigDecimal value) {
            addCriterion("save_level_point >", value, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_point > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("save_level_point >=", value, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_point >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointLessThan(BigDecimal value) {
            addCriterion("save_level_point <", value, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_point < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointLessThanOrEqualTo(BigDecimal value) {
            addCriterion("save_level_point <=", value, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("save_level_point <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointIn(List<BigDecimal> values) {
            addCriterion("save_level_point in", values, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointNotIn(List<BigDecimal> values) {
            addCriterion("save_level_point not in", values, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("save_level_point between", value1, value2, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andSaveLevelPointNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("save_level_point not between", value1, value2, "saveLevelPoint");
            return (Criteria) this;
        }

        public Criteria andPointRatioIsNull() {
            addCriterion("point_ratio is null");
            return (Criteria) this;
        }

        public Criteria andPointRatioIsNotNull() {
            addCriterion("point_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andPointRatioEqualTo(Integer value) {
            addCriterion("point_ratio =", value, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("point_ratio = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPointRatioNotEqualTo(Integer value) {
            addCriterion("point_ratio <>", value, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("point_ratio <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPointRatioGreaterThan(Integer value) {
            addCriterion("point_ratio >", value, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("point_ratio > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPointRatioGreaterThanOrEqualTo(Integer value) {
            addCriterion("point_ratio >=", value, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("point_ratio >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPointRatioLessThan(Integer value) {
            addCriterion("point_ratio <", value, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("point_ratio < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPointRatioLessThanOrEqualTo(Integer value) {
            addCriterion("point_ratio <=", value, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("point_ratio <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPointRatioIn(List<Integer> values) {
            addCriterion("point_ratio in", values, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioNotIn(List<Integer> values) {
            addCriterion("point_ratio not in", values, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioBetween(Integer value1, Integer value2) {
            addCriterion("point_ratio between", value1, value2, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPointRatioNotBetween(Integer value1, Integer value2) {
            addCriterion("point_ratio not between", value1, value2, "pointRatio");
            return (Criteria) this;
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(Integer value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("pid = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(Integer value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("pid <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(Integer value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("pid > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("pid >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPidLessThan(Integer value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("pid < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(Integer value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("pid <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPidIn(List<Integer> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<Integer> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(Integer value1, Integer value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(Integer value1, Integer value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(LocalDateTime value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("add_time = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("add_time <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(LocalDateTime value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("add_time > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("add_time >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(LocalDateTime value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("add_time < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("add_time <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<LocalDateTime> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<LocalDateTime> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("update_time = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("update_time <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("update_time > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("update_time >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(LocalDateTime value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("update_time < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("update_time <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<LocalDateTime> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<LocalDateTime> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("`status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("`status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("`status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`status` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("`status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`status` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("`status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`status` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("`status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`status` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("`status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`status` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("`status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("`status` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("`status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("`status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("`status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("`status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsIsNull() {
            addCriterion("gift_card_ids is null");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsIsNotNull() {
            addCriterion("gift_card_ids is not null");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsEqualTo(Integer[] value) {
            addGiftCardIdsCriterion("gift_card_ids =", value, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("gift_card_ids = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsNotEqualTo(Integer[] value) {
            addGiftCardIdsCriterion("gift_card_ids <>", value, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsNotEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("gift_card_ids <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsGreaterThan(Integer[] value) {
            addGiftCardIdsCriterion("gift_card_ids >", value, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsGreaterThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("gift_card_ids > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsGreaterThanOrEqualTo(Integer[] value) {
            addGiftCardIdsCriterion("gift_card_ids >=", value, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsGreaterThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("gift_card_ids >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsLessThan(Integer[] value) {
            addGiftCardIdsCriterion("gift_card_ids <", value, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsLessThanColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("gift_card_ids < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsLessThanOrEqualTo(Integer[] value) {
            addGiftCardIdsCriterion("gift_card_ids <=", value, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsLessThanOrEqualToColumn(LumiereLevelMember.Column column) {
            addCriterion(new StringBuilder("gift_card_ids <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsLike(Integer[] value) {
            addGiftCardIdsCriterion("gift_card_ids like", value, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsNotLike(Integer[] value) {
            addGiftCardIdsCriterion("gift_card_ids not like", value, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsIn(List<Integer[]> values) {
            addGiftCardIdsCriterion("gift_card_ids in", values, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsNotIn(List<Integer[]> values) {
            addGiftCardIdsCriterion("gift_card_ids not in", values, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsBetween(Integer[] value1, Integer[] value2) {
            addGiftCardIdsCriterion("gift_card_ids between", value1, value2, "giftCardIds");
            return (Criteria) this;
        }

        public Criteria andGiftCardIdsNotBetween(Integer[] value1, Integer[] value2) {
            addGiftCardIdsCriterion("gift_card_ids not between", value1, value2, "giftCardIds");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private LumiereLevelMemberExample example;

        protected Criteria(LumiereLevelMemberExample example) {
            super();
            this.example = example;
        }

        public LumiereLevelMemberExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(LumiereLevelMember.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(LumiereLevelMember.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(org.linlinjava.litemall.db.domain.LumiereLevelMemberExample example);
    }
}